#!/bin/bash

url="$1"
content=$(curl -s "$url")
echo "$content"|grep -oP '(?<=href=")[^"]*'

echo "$content"|grep -oP '(http|https)://[^"]*'
